package edu.sctu.practice.class01.liangyuxiang.work.text2;

/**
 * Created by 梁玉翔 on 2015/10/15.
 */
public class Vehicle {
    public int speed;
    public int size;

    public Vehicle(int speed, int size) {
        this.size = size;
        this.speed = speed;
    }

    public void move() {
    }

    public int speedUp(int a) {
        speed = speed + a;
        System.out.println(speed);
        return speed;
    }

    public int speedDown(int a) {
        speed = speed - a;
        System.out.println(speed);
        return speed;
    }
}
